﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <script src="/js/header.js"></script>
    <script src="/lib/date/wdatepicker.js"></script>
    <style>
        .form-group p {
            text-indent: 2em
        }
    </style>
</head>
<body style="background-color: white;">
    <section class="container-fluid" style="background-color: white;">
        <form class="form-horizontal m15_t" id="form">
            <div class="tab-content">
                <div class="tab-pane fade in active" id="home">
                    <div class="form-group t_c">
                        <h3 id="subject"></h3>
                    </div>
                    <div class="form-group" id="content" style="padding:8px; line-height:20px; font-size:14px;"><pre style="padding:8px;height:240px;"></pre></div>
                </div>
            </div>
            <div><p class="pull-right">秒付宝</p></div>
        </form>
    </section>
</body>
</html>
<script type="text/javascript">

    var id = null;

    function init() {
        var cover = FlashPay.UI.Mask({
            obj: $("body"),
            opacity: 0.5
        });

        FlashPay.Util.Ajax({
            type: "GET",
            url: "/Home/GetSysAnnouncement/" + id,
            data: null,
            success: function (response) {

                if (response.success) {
                    if (response.data != null) {
                        $("h3#subject").html(response.data.subject);
                        $("div#content>pre").html(response.data.content);
                    }
                    cover.Remove();
                } else {
                    cover.Remove();
                    FlashPay.UI.Tip_short_warning(response.errorMessage);
                }
            },
            error: function (e) {

                cover.Remove();
                FlashPay.UI.Tip_short_warning("操作失败！请查看网络，请重试");
            }
        });
    }

    $(function () {

        id = FlashPay.Util.GetQueryString("id");

        init();
    })
</script>